<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>选项1</title>
    <style>
        #box {
            width: 198px;
            height: 186px;
            border: 1px solid #eeeeee;
            border-bottom: 1px solid #eeeeee;
            font-size: 16px;
            line-height: 29px;
            text-align: center;
            margin: 100px auto 0;
        }

       .con1:nth-child(2){
            display: none;
        }

        .choise {
            height: 29px;
            width: 198px;
            background: #eee;
            display: flex;
            justify-content: space-between;
        }

        .choise input{
            width: 49%;
            border: 1px solid #eee;
            background: #f8f8f8;
        }

        .choise .btn{
            height: 29px;
            width: 49%;
            color: red;
            background: #fff;
            border-left: 1px solid #eeeeee;
            border-right: 1px solid #eeeeee;
            border-top: 2px solid red;
            border-bottom:  1px solid #fff;
        }

        .con1{
            height: 156px;
            width: 100%;
            box-sizing: border-box;
            padding-top: 14px;
            padding-bottom: 10px;
            padding-left: 10px;
        }
        .con1 .time{
            width: 180px;
            height: 30px;
            background: #f6f6f6;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        .con1 .time span{
            font-size: 12px;
            color: #888;
        }

        .con1 .team{
            height: 38px;
            width: 180px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-start;
            margin-top: 14px;
        }
        
        .con1 .team span{
            font-size: 12px;
        }
        
        .con1 .case{
            width: 180px;
            height: 28px;
            background: #f8f8f8;
            border-radius: 12px;
            font-size: 12px;
            line-height: 28px;
            color: #006cba;
            text-align: center;
            margin-top: 14px;
        }

    </style>
</head>

<body>
    <div id="box">
        <div class="choise">
            <input type="button" value="竞彩预测" class="btn">
            <input type="button" value="红彩专家">
        </div>
        <div class="con1">
            <div class="time">
                <span>NBA</span>
                <span>07/24 02：00</span>
            </div>
            <div class="team">
                <span>金州勇士</span>
                <span>洛杉矶湖人</span>
            </div>
            <div class="case">
                查看全部方案
            </div>
        </div>
        <div class="con1">
            <div class="time">
                <span>NBA</span>
                <span>07/25 12：00</span>
            </div>
            <div class="team">
                <span>布鲁克林篮网</span>
                <span>洛杉矶快船</span>
            </div>
            <div class="case">
                查看全部方案
            </div>
        </div>
    </div>
</body>
<script>
    (function () {
        var box = document.getElementById('box');
        var act = box.getElementsByTagName('input');
        var con = box.getElementsByClassName('con1');
        for (var i = 0; i < act.length; i++) {
            act[i].index = i;
            act[i].onclick = function () {
                for (var j = 0; j < act.length; j++) {
                    act[j].className = '';
                    con[j].style.display = 'none';
                }
                this.className = 'btn';
                con[this.index].style.display = 'block';
            }
        }
    })()
</script>

</html>